<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="com.xh.bbs.entity.UserEntity" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>查看用户信息</title>
<link rel="stylesheet" type="text/css" href="css/message.css"> 

<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">  
	<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
	<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<style>
.bk{  
  background-image: url(http://mpic.tiankong.com/561/5d6/5615d6afeeaf9e8f4bef8367f0984a39/4251r-2786.jpg);  
  background-repeat: no-repeat;  
  background-size: 100% auto;  
}
</style>

</head>
<body class="bk">
<nav class="navbar navbar-inverse" role="navigation"><!-- 顶部的菜单栏 -->
  <div class="container-fluid">
    <div class="navbar-header">
      <a class="navbar-brand" href="forumList">校园论坛</a>
    </div>
    <ul class="nav navbar-nav navbar-right">
    <li><a href="${pageContext.request.contextPath}/UserInfo?uid=${user.user_id}"><span class="glyphicon glyphicon-user"></span> 个人信息</a></li>
      <li><a href="${pageContext.request.contextPath}/UPersonForumList?uid=${user.user_id}"><span class="glyphicon glyphicon-user"></span> 我的帖子</a></li>
      <li><a href="TouristHome"><span class="glyphicon glyphicon-user"></span> 退出论坛</a></li>
      
    </ul>
  </div>
</nav>
<div  class="container"><!-- 中间的 -->
<nav class="navbar navbar-default" role="navigation">
<div class="panel panel-default">
<div class="panel-body">
<table class="table table-bordered">
<% UserEntity user=(UserEntity)request.getAttribute("user"); %>
	<caption>用户信息</caption>
	
	<tbody>
		<tr>
		    <th>用户头像</th>
			<td><img src="<%=user.getUser_face()%>"/></td>
			
		</tr>
		<tr>
		    <th>用户名</th>
			<td><%=user.getUser_name()%></td>
			
		</tr>
			<tr>
		    <th>性别</th>
			<td><%=user.getUser_sex()%></td>
			
		</tr>
			<tr>
		    <th>联系电话</th>
			<td><%=user.getUser_phone()%></td>
			
		</tr>
			<tr>
		    <th>电子邮箱</th>
			<td><%=user.getUser_email()%></td>
			
		</tr>
			<tr>
		    <th>来自哪里</th>
			<td><%=user.getUser_from()%></td>
			
		</tr>
		
			
          
        
		
	</tbody>
</table>
<button type="button" class="btn btn-primary" onclick="location.href='forumList'"  >返回</button>
</div></div></nav></div>
</body>
<!-- <thead>
		<tr>
			<th>用户头像</th>
			<th>用户名</th>
			<th>性别</th>
			<th>联系电话</th>
			<th>电子邮箱</th>
			<th>来自哪里</th>
		</tr>
	</thead>
	<td><%=user.getUser_name()%></td>
			<td><%=user.getUser_sex()%></td>
			<td><%=user.getUser_phone()%></td>
			<td><%=user.getUser_email()%></td>
			<td><%=user.getUser_from()%></td> 
	-->
</html>